package com.bootdo.system.dao;

import com.bootdo.system.domain.UserDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * @author chengxh
 * @email 1506464266@qq.com
 * @date 2019-5-05 17:11:16
 */
@Mapper
public interface UserDao {

	UserDO get(Long userId);
	
	List<UserDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(Long userId);
	
	int batchRemove(Long[] userIds);
	
	Long[] listAllDept();

	UserDO getUserInfoByOpenid(String openid);

	UserDO getUserByOpenId(String openId);

	UserDO getUserByUserName(String username);

	List<Long> getIdByDeptId(Long deptId);

}
